package com.clps.designPatterns.chapter02.线程安全问题;

public class Singleton02 {
    //使用静态的变量记录唯一的实例
    private static Singleton02 singleton = new Singleton02();

    private Singleton02() {
    }

    public static  Singleton02 getInstance(){
        return  singleton;
    }

}
